﻿using System.Collections.Generic;
using eCommMongo.Core.Domain.Pictures;

namespace eCommMongo.Service.Pictures
{
    public interface IPictureService
    {
        Picture GetPictureById(string pictureId);

    

        string GetPictureUrl(Picture picture, int targetSize = 0, bool showDefaultPicture = true);
        string GetPictureUrl(string pictureId, int targetSize = 0, bool showDefaultPicture = true);


        Picture Resize(string pictureId, int targetSize);
        Picture InsertPicture(byte[] fileBinary, string contentType, object o, bool b);
        IList<Picture> GetPicturesByProductId(int id);
        string GetDefaultPictureUrl(int targetSize);

        byte[] CropImage(string id, int x, int y, int w, int h);
    }
}